#pragma once

#include "EditFiledQuestionDlg.h"
#include "afxwin.h"
#include "afxcmn.h"
// CEditPropertyCriterion dialog

class CEditPropertyCriterion : public CEditFiledQuestionDlg
{
    DECLARE_DYNAMIC(CEditPropertyCriterion)

public:
    CEditPropertyCriterion(UINT nIDTemplate, CWnd* pParent = NULL);   // standard constructor
    virtual ~CEditPropertyCriterion();

    //enum { IDD = IDD_EditOfficeQuestion };
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

    DECLARE_MESSAGE_MAP()

    CListCtrl m_listProperties;
    CString m_parserCmd;
    CEdit m_editWeight;
    int m_editingIdx;

    void SetParser(const CString &type, const std::string &confString);

public:
    virtual BOOL OnInitDialog();
    afx_msg void OnBnClickedButtonOpenandanalyze();
    afx_msg void OnBnClickedButtonDeleteproperty();
    afx_msg void OnEnChangeEditBlank();
    afx_msg void OnEnKillfocusEditBlank();
    afx_msg void OnBnClickedButtonEditweight();
protected:
    virtual void OnOK();
public:
    afx_msg void OnNMDblclkListCriterion(NMHDR *pNMHDR, LRESULT *pResult);
    virtual BOOL PreTranslateMessage(MSG* pMsg);
};
